package com.example.fuelcontroller;

import android.os.Bundle;
import android.view.MotionEvent;
import android.app.Activity;


public class MainActivity extends Activity {

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_main);
	}

	// MOVING
	@Override
	public boolean onTouchEvent(MotionEvent event) {
		 switch (event.getAction()) {
	        case MotionEvent.ACTION_DOWN: {
	        	int x1 = (int) event.getX();	
	        	break;
	        	}
	        case MotionEvent.ACTION_MOVE: {
	        	int x1 = (int) event.getX();	
	        	break;
	        	}
	        case MotionEvent.ACTION_UP: {
	        	int x1 = (int) event.getX();	
	        	break;
	        	}
		 }
		return true;
	}
}
